/**
 *
 * Lockbox
 * a Password and Secret Information Manager
 *
 * Created by Nathan Black
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.

 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 */

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UITransitionView.h>
#import "LockboxListView.h"
#import "LockboxItemView.h"
#import "LockboxPasswordView.h"
#import "LockboxTagView.h"
#import "LockboxStorage.h"
#import "LockboxItem.h"
#import "LockboxTableCell.h"
#import "LockboxOptionsView.h"
#import "LockboxImportView.h"


@interface LockboxApp : UIApplication
{
    UIWindow *_window;
    LockboxListView *_listView;
    UITransitionView *_transView;
    LockboxItemView *_itemView;
    LockboxPasswordView* _pwView;
    LockboxOptionsView* _optionsView;
    LockboxImportView* _importView;
    LockboxTagView* _tagView;
    LockboxTableCell *_lastCell;
    
    BOOL _editingItem;
    UIView* _currView;
    LockboxStorage *_storage;
}

- (void)transToItemView:(LockboxItem*)item cell:(LockboxTableCell*)cell;
- (void)returnFromItemView:(LockboxItem*)item itemDeleted:(BOOL)itemDeleted;

- (LockboxListView *) getListView;
- (LockboxItemView *) getItemView;
- (LockboxOptionsView *) getOptionsView;
- (LockboxImportView *) getImportView;
- (void)transitionToView:(id)toView withTransition:(int)trans;

@end
